const { defineConfig } = require('@vue/cli-service')

const port = '9090'
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    port: port,
    proxy: {
      'data-screen': {
        changeOrigin: true,
        target: 'http://127.0.0.1:8000',
      }
    },
    //https: true,
    // disableHostCheck: true,
    allowedHosts: 'all',
    headers: {
      'Access-Control-Allow-Origin': '*',
    }
  }
})
